package com.ruifu.worksheet.service.impl;

import com.ruifu.common.vo.worksheet.WsCommonSheet;
import com.ruifu.worksheet.mapper.WsRelationFunctionMapper;
import com.ruifu.worksheet.service.WsRelationFunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigInteger;
import java.util.List;

/**
 * @author yuanyundi
 * @date 2020/05/19
 */
@Service
@Transactional(rollbackFor=Exception.class)
public class WsRelationFunctionServiceImpl implements WsRelationFunctionService {
    @Autowired
    private WsRelationFunctionMapper wsRelationFunctionMapper;
    /**
     * 查询业务关联的变更单
     *
     * @param relationId  业务主键
     * @param busiFlag 业务标识
     * @return
     */
    @Override
    public List<WsCommonSheet> findRelationWs(BigInteger relationId, String busiFlag) {
        return wsRelationFunctionMapper.findRelationWs(relationId,busiFlag);
    }
}
